package com.robot.topology.graph.domain;

import java.util.List;

public class Graph {
	private final List<Vertex> vertexes;
	private final List<Edge> edges;
	private Vertex goalVertex;
	private Vertex initialVertex;

	public Graph(List<Vertex> vertexes, List<Edge> edges) {
		this.vertexes = vertexes;
		this.edges = edges;
	}

	public List<Vertex> getVertexes() {
		return vertexes;
	}

	public List<Edge> getEdges() {
		return edges;
	}

	public Vertex getGoalVertex() {
		return goalVertex;
	}

	public void setGoalVertex(Vertex goalVertex) {
		this.goalVertex = goalVertex;
	}

	public Vertex getInitialVertex() {
		return initialVertex;
	}

	public void setInitialVertex(Vertex initialVertex) {
		this.initialVertex = initialVertex;
	}
	
	public String getLabelEdges(){
		String labels = "";
		for(Edge currentEdge : edges){
			labels += currentEdge.toString() + ";";
		}
		return labels;
	}
	
	public String getValueEdges(){
		String values = "";
		for(Edge currentEdge : edges){
			values += currentEdge.getWeight() + ";";
		}
		return values;
	}

} 